<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <include file="Public:meta"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<include file="Public:header"/>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <include file="Public:sidebar"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->
            <div class="row-fluid">
                 <!-- begin BCN -->
                <div class="row-fluid">
                    <div class="span12"><ul class="breadcrumb"><li><i class="icon-home"></i><a onfocus="blurLink(this);" href="{:U('Index/index')}">首页</a>&nbsp;<span class="icon-angle-right"></span>&nbsp;</li><li><a onfocus="blurLink(this);" href="{:U(CONTROLLER_NAME . '/index', 'kept=1')}">{$ParentPageName|default="未命名"}</a>&nbsp;<span class="icon-angle-right"></span>&nbsp;</li><li>{$PageName|default="未命名"}</li></ul></div>
                </div>
                <!-- end BCN -->
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN PAGE CONTENT-->
            <div class="row-fluid white">
                <div class="span12">
                    <!-- begin 操作与分页 -->
                    <div class="row-fluid ">
                        <div class="dataTables_length pull-left">
                            <form id="limit_form" name="limit_form" method="post" action="">
                                <label for="limit_num">
                                    <select class="limit_num" id="limit_num" name="limit_num">
                                    <volist name="page_limit_num" id="vo">
                                        <option <eq name="_SESSION['page_limit_num']" value="$vo"> selected="selected" </eq> value="{$vo}">{$vo}</option>
                                    </volist>
                                    </select>
                                    个记录/每个页面
                                </label>
                            </form>
                        </div>
                        <div class="btn-item pull-left">
                            <if condition="checkAccess(CONTROLLER_NAME,'save')">
                                <a class="btn blue" href="{:U(CONTROLLER_NAME.'/save')}">添加<i class="icon-plus"></i></a>
                            </if>
                        </div>
                    </div>
                    <!-- end 操作与分页 -->
                    <div class="portlet-body">
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>图库分类</th>
                                <th>图片</th>
                                <th>描述</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <notempty name="list">
                                <tbody>
                                <volist name="list" id="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.category_id|getTitle=###,image_category,name}</td>
                                        <td><a class="image_view" href="#show_pic" data-toggle="modal" data-width="auto" rel="{$vo.image}"><img style="display:block;width:50px;height:50px;margin:auto;" src="{$vo.image}" /></a></td>

                                        <td>{$vo.remark}</td>
                                        <td>
                                            <div>
                                                <if condition="checkAccess(CONTROLLER_NAME,'edit')">
                                                    <a class="btn green-stripe mini" href="{:U(CONTROLLER_NAME.'/edit',array('id'=>$vo['id']))}">编辑</a>
                                                </if>
                                                <if condition="checkAccess(CONTROLLER_NAME,'del')">
                                                    <a class="btn red-stripe mini del" href="{:U(CONTROLLER_NAME.'/del', array('id'=>$vo['id']))}">删除</a>
                                                </if>
                                            </div>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </notempty>
                        </table>
                    </div>
                    <div class="pages clearfix">
                        <include file="Public:page" />
                    </div>
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
        <!-- END PAGE CONTAINER-->
    </div>
    <!-- END PAGE -->
</div>
<!-- END CONTAINER -->

<include file="Public:footer"/>
<script type="text/javascript">
    jQuery(document).ready(function () {

    });
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>